<!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>longest common substr</title>
        <style>
</style>
        
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Microsoft/vscode/extensions/markdown-language-features/media/markdown.css">
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Microsoft/vscode/extensions/markdown-language-features/media/highlight.css">
        
        <style>
.task-list-item { list-style-type: none; } .task-list-item-checkbox { margin-left: -20px; vertical-align: middle; }
</style>
        <style>
            body {
                font-family: -apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', 'Ubuntu', 'Droid Sans', sans-serif;
                font-size: 14px;
                line-height: 1.6;
            }
        </style>
        
        
        
    </head>
    <body class="vscode-light">
        <h1 id="longest-common-substr">longest common substr</h1>
<ul>
<li><a href="https://www.youtube.com/watch?v=BysNXJHzCEs&amp;list=PLrmLmBdmIlpsHaNTPP_jHHDx_os9ItYXr&amp;index=17">https://www.youtube.com/watch?v=BysNXJHzCEs&amp;list=PLrmLmBdmIlpsHaNTPP_jHHDx_os9ItYXr&amp;index=17</a></li>
<li><a href="https://github.com/mission-peace/interview/blob/master/src/com/interview/dynamic/LongestCommonSubstring.java">https://github.com/mission-peace/interview/blob/master/src/com/interview/dynamic/LongestCommonSubstring.java</a></li>
</ul>
<pre><code><code><div>if(str1[i-1] == str2[j-1]){
    T[i][j] = T[i-1][j-1] +1;
} else {
    T[i][j] = 0
}
</div></code></code></pre>
<p><img src="file:///e:\gitee\leetcode\dp\pics\dp10.png" alt="dp10.png"></p>

    </body>
    </html>